<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="applicable-device" content="pc" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta http-equiv="Cache-Control" content="no-transform" />
<title>登陆</title>
<link href="<%=path %>/css/bootstrap.min.css" rel="stylesheet">
<link href="<%=path %>/css/font-awesome.css" rel="stylesheet">
<link href="<%=path %>/css/iCheck/custom.css" rel="stylesheet">
<link href="<%=path %>/css/animate.css" rel="stylesheet">
<link href="<%=path %>/css/style1.css?ver=1" rel="stylesheet">
<script type="text/javascript" src="<%=path %>/js/jquery-1.12.4.min.js"></script>
<script src="<%=path %>/js/bootstrap.min.js"></script>
<script src="<%=path %>/js/global.js"></script>
<script type="text/javascript" src="<%=path%>/js/jquery-form.js"></script>

<script type="text/javascript">
$(function(){
	$('#regerist_form').ajaxForm(function(data){
		if (data.registResult == 'SUCCESS') {
			alert("注册成功，即将跳往登陆页面");
   			window.location.href="<%=path %>/login/login";
		} else {
			alert(data.errorMsg);
	   		return false;
		}
	});
});

</script>
</head>
<body class="gray-bg">
    <div class="middle-box text-center loginscreen   animated fadeInDown">
        <div>
            <div>
                  <h1 class="logo-name">在线美食网</h1>
            </div>
            <h3>欢迎注册在线美食网商户版</h3>
            <form class="m-t" role="form" id="regerist_form" action ="<%=path %>/login/toRegistBusi" method="post">
                <div class="form-group">
                    <input type="text" id="userName" class="form-control" placeholder="用户名" name="userName" required="">
                </div>
                <div class="form-group">
                    <input type="password" class="form-control" placeholder="输入密码" id="password" name="password" required="">
                </div>
                <div class="form-group">
                    <input type="password" class="form-control" placeholder="再次输入密码" name="passwordT"  id="passwordT" required="">
                </div>
                 <div class="form-group">
                    <input type="text" class="form-control" placeholder="店铺名称" name="nickName"  id="nickName" required="">
                </div>               
                 <div class="form-group">
                    <input type="email" class="form-control" placeholder="输入邮箱" id="email" name="email" required="">
                </div>
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="店铺地址" id="address" name="address" required="">
                </div>
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="店铺电话" id="telPhone" name="telPhone" required="">
                </div>
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="工作时间  示例：周一至周日 09:00-21:00" id="workTime" name="workTime" required="">
                </div>
                <div class="form-group">
					<div class="h10"></div>
					<input type="file"  name="picFile" id="picFile" class="form-control" value="" accept="image/jpg,image/jpeg,image/png,image/bmp" />
					*店铺照片1张：(210*160)
				</div>				
				<div class="h10"></div>
                <button type="submit" class="btn btn-primary block full-width m-b">注册</button>

                <p class="text-muted text-center"><small>已有账号?</small></p>
                <a class="btn btn-sm btn-white btn-block" href="<%=path %>/login/login">登录</a>
            </form>
        </div>
    </div>
</body>

</html>



